import request from '@/utils/request'

// 查询业务管理-内容发布列表
export function listComBusinessContent(query) {
  return request({
    url: '/com/comBusinessContent/list',
    method: 'get',
    params: query
  })
}

export function listComBusinessContentFunc(query) {
  return request({
    url: '/com/comBusinessContent/getListByClassifyId',
    method: 'get',
    params: query
  })
}


// 查询业务管理-内容发布详细
export function getComBusinessContent(contentId) {
  return request({
    url: '/com/comBusinessContent/' + contentId,
    method: 'get'
  })
}

// 新增业务管理-内容发布
export function addComBusinessContent(data) {
  return request({
    url: '/com/comBusinessContent',
    method: 'post',
    data: data
  })
}

// 修改业务管理-内容发布
export function updateComBusinessContent(data) {
  return request({
    url: '/com/comBusinessContent',
    method: 'put',
    data: data
  })
}

// 删除业务管理-内容发布
export function delComBusinessContent(contentId) {
  return request({
    url: '/com/comBusinessContent/' + contentId,
    method: 'delete'
  })
}

// 置为有效/置为无效
export function effectiveStatus(data) {
  return request({
    url: '/com/comBusinessContent/effectiveStatus',
    method: 'post',
    data
  })
}
